package com.day01;

/**
 * @Author liuyuan
 * @Date 2022/11/4 11:11 AM
 * @Version 1.0
 */
public class Father {

    String name;
    String height;
    String weight;
    //私有的 儿子就继承到了
    private boolean isTuTou;



    void say(){
        System.out.println("Father:say");
    }

    @Override
    public String toString() {
        return "Father{" +
                "name='" + name + '\'' +
                ", height='" + height + '\'' +
                ", weight='" + weight + '\'' +
                ", isTuTou=" + isTuTou +
                '}';
    }
    //私有的 儿子就继承到了
    private boolean isTuTou() {
        return isTuTou;
    }
    //私有的 儿子就继承到了
    private void setTuTou(boolean tuTou) {
        isTuTou = tuTou;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }
}
